﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Bastanteo.Dominio.Representante>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

  <h2>Módulo de Abogado</h2>

    <div id="menucontainer">            
        <ul id="menu">              
            <li><%: Html.ActionLink("Representante", "Index", "Representante")%></li>
            <li><%: Html.ActionLink("Combinación", "Index", "Combinacion")%></li>
            <li><%: Html.ActionLink("Grupos", "Index", "Grupo")%></li>
        </ul>
    </div>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
                    
            
            <div class="editor-label">
                Tipo de Documento
            </div>
            <div class="editor-field"> 
                <%: Html.DropDownList("TipoDocumento", (IEnumerable<SelectListItem>)TempData["TipoDocumento"])%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NumeroDocumento) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NumeroDocumento) %>
                <%: Html.ValidationMessageFor(model => model.NumeroDocumento) %>
            </div>
            
          
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Apellidos) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Apellidos) %>
                <%: Html.ValidationMessageFor(model => model.Apellidos) %>
            </div>

              <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombres) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombres) %>
                <%: Html.ValidationMessageFor(model => model.Nombres) %>
            </div>

            <div class="editor-label">
               Representa a:
            </div>
            <div class="editor-field"> 
                <%: Html.DropDownList("Cliente", (IEnumerable<SelectListItem>)TempData["Cliente"])%>
            </div>
          
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Cargo) %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("Cargo", (IEnumerable<SelectListItem>)TempData["Cargo"])%>
                <%: Html.ValidationMessageFor(model => model.Cargo) %>
            </div>

              
        <div class="editor-label">
               Grupo
            </div>
            <div class="editor-field"> 
                <%: Html.DropDownList("Grupo", (IEnumerable<SelectListItem>)TempData["Grupo"])%>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index")%>
    </div>

</asp:Content>

